//
//  YPFragmentCell.m
//  WHISPER
//
//  Created by lanou3g on 15/12/19.
//  Copyright © 2015年 王艳苹. All rights reserved.
//

#import "YPFragmentCell.h"
#import "UIView+Extention.h"

@implementation YPFragmentCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (UIImageView *)framentImage{
    if (_framentImage == nil) {
        _framentImage = [[UIImageView alloc]initWithFrame:CGRectMake(20, 20,[UIScreen mainScreen].bounds.size.width - 40,0)];
        [self.contentView addSubview:_framentImage];
    }
    return _framentImage;
}
- (UILabel *)contentLable{
    if (_contentLable == nil) {
        _contentLable = [[UILabel alloc]initWithFrame:CGRectMake(20,20, [UIScreen mainScreen].bounds.size.width - 40,0)];
        [self.contentView addSubview:_contentLable];
    }
    return _contentLable;
}
@end
